-- GENERATED SPELL FOR [Arcanist Torseldori] --


function spell0_19257(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(22273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19257', 641, 1)
end

function spell1_19257(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(33634,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19257', 11000, 1)
end

function spell2_19257(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(12674,pUnit)
pUnit:RegisterEvent('Sorts_19257', 8302, 1)
end

function spell3_19257(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15530,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19257', 7000, 1)
end

function Sorts_19257(pUnit, Event)
local choix_sorts_19257 = math.random(0, 3)
if choix_sorts_19257 == 0 then
pUnit:RegisterEvent('spell0_19257', 1, 1)
end
if choix_sorts_19257 == 1 then
pUnit:RegisterEvent('spell1_19257', 1, 1)
end
if choix_sorts_19257 == 2 then
pUnit:RegisterEvent('spell2_19257', 1, 1)
end
if choix_sorts_19257 == 3 then
pUnit:RegisterEvent('spell3_19257', 1, 1)
end
end

function mob19257_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19257', math.random(1500, 3000), 1)
end

function mob19257_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19257_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19257_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19257, 1, 'mob19257_Action')
RegisterUnitEvent(19257, 2, 'mob19257_Leave')
RegisterUnitEvent(19257, 3, 'mob19257_Kill')
RegisterUnitEvent(19257, 4, 'mob19257_Die')
